﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using WpfClient.Models;

namespace WpfClient
{
    public static class ScriptSearcherHelper
    {
        public static bool EqualsTo(this LineViewModel first, string text, bool russian = false)
        {
            if (russian)
            {
                return first.Line.Rus.Any(r => string.Equals(r.Value, text, StringComparison.OrdinalIgnoreCase));
            }
            else
            {
                return string.Equals(first.Line.Eng, text, StringComparison.OrdinalIgnoreCase);
            }
        }

    }
}
